namespace CSharpPro._1023;

public class Seven
{
    public void TestPrint(int[] a)
    {
        int temp;
        
        Console.WriteLine(String.Join(",",a));
        for (int i = 0; i < a.Length; i++)
        {
            for (int j = 0; j < a.Length-i-1; j++)
            {
                if (a[j] > a[j + 1])
                {
                    temp = a[j];
                    a[j]=a[j+1];
                    a[j+1]=temp;
                }
            }
        }
    }
}